from pydantic import BaseModel
from typing import Optional


# 定义发送给客户端的数据模板
class Data(BaseModel):
    renderList: list
    behaviorList: list
    lsaData: list
    nodes: list
    edges: list


class Response(BaseModel):
    message: str
    success: bool
    data: Optional[Data] = None  # 当success为true时才返回data
